<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
            <%= t(:a_admin_management)%>
        </title>
        <meta http-equiv="Content-Type" content="text/html;	charset=utf-8" />
		<%= stylesheet_link_tag "admin/login.css"%>
    </head>
    <body>
    	<%= yield%>
    </body>
</html>
<script type="text/javascript">
    window.onload = function(){
        document.getElementById('admin_name').focus();
    }
    function checkform(){
        var notice = document.getElementById('notice');
        var admin_name = document.getElementById("admin_name").value;
        if (!admin_name) {
            notice.innerHTML = '<%= t(:a_admin_name_none)%>';
            return false;
        }
        var admin_password = document.getElementById("admin_password").value;
        if (!admin_password) {
            notice.innerHTML = '<%= t(:a_admin_password)%>';
            return false;
        }
    }
</script>
